#ktagger project
project(KTagger)

find_package(SharedMimeInfo REQUIRED)
include (KDE4Defaults)
include(MacroLibrary)

#### TODO: ENABLE
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
#set(PKGCONFIG_GETVAR_DIR ${CMAKE_SOURCE_DIR}/cmake)
#find_package(PKGCONFIG_GETVAR)
include (PkgConfigGetVar)

include_directories(
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}
  ${KDE4_INCLUDES}
  ${NEPOMUK_INCLUDES}
  ${SOPRANO_INCLUDE_DIR}
  ${NEPOMUK_INCLUDE_DIR}/nepomuk   

   #${KTAGGER_INCLUDE_DIR}
)

#Configuration variables

#application name
set( APPL_NAME "ktagger" )
#name of the service
set( APPL_SERVICE_NAME "org.kde.ktagger" )
#name of i18n catalog
set( CATALOG_NAME "ktagger")
#name of main object
set( MAIN_DBUS_OBJECT "/KTagger" )
#name of the interface
set( APPL_DBUS_INTERFACE "org.kde.ktagger.App")
#application version
set( APPL_VERSION "0.0.1-rc1-SNAPSHOT" )

OPTION( TAGGER_UNIQUE_APPL "Use KUniqueApplication" OFF )

OPTION( USE_NEPOMUK "Use Nepomuk" ON )

OPTION( KTAGGER_TEST "test messages" OFF )

OPTION( TEST_RESOURCES "test resources with fixed (test) paths" OFF )

OPTION( DEBUG_MYAPPLET "debug activity data on applet (waste some screen space)" OFF )

set( CONTROL_WINDOW_FILE ${DATA_INSTALL_DIR}/ktagger/ControlWindow.rc )


configure_file (config-ktagger.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-ktagger.h )

include(CMakeLists.application.txt)

include(CMakeLists.plasmoid.txt)
